package ui.panels.commands;

import ui.panels.errors.ErrorFrame;
import ui.panels.errors.ErrorPanel;

public class OpenErrorCommand implements Command{

	private String message = null;
	
	public void execute()
	{
		ErrorFrame frame = new ErrorFrame();
		ErrorPanel panel = new ErrorPanel(frame, message);
		frame.add(panel);
	}

	public void setMeesage(String message) {
		this.message = message;
	}
}
